const TOKEN = 'Hero'
const INFO = 'Hero_info'

export function setToken(token) {
  window.localStorage.setItem(TOKEN, token)
}
export function getToken() {
  return window.localStorage.getItem(TOKEN)
}
export function removeToken() {
  window.localStorage.removeItem(TOKEN)
}
export function setInfo(info) {
  window.localStorage.setItem(INFO, JSON.stringify(info))
}
export function getInfo() {
  return window.localStorage.getItem(INFO)
}
export function removeInfo() {
  window.localStorage.removeItem(INFO)
}

export function clear() {
  window.localStorage.clear()
}
